$(window).ready(function(){
	loadscript('cycle',function(){
		loadscript('banner',function(){
			newBanner('div#banner');
		});
	});
});

$('#askabookseller').ready(function(){
	loadscript('colorbox',function(){
		var urlHash = getUrlQuery();
		if (urlHash['ask'] && urlHash['ask'] === 'true') {
			$.colorbox({
				href:'/books/askabookseller.taf?cbDialog=true&subject=askabookseller',
				open:true,
				iframe:true,
				innerWidth:'400px',
				innerHeight:'420px'
			});
		};
		$('#askabookseller').colorbox({iframe:true,innerWidth:'400px',innerHeight:'420px'});
	});
});